<div id="page-content">
    <div id='wrap'>
        <div id="page-heading">
            <ol class="breadcrumb">
                <li><a href="index.php">Dashboad</a></li>
                <li>Data Dokter</li>
            </ol>

            <h1>Data Dokter</h1>
        </div>


        <div class="container">
         <a href="<?php echo site_url('dokter/tambah'); ?>" class="btn btn-midnightblue"><i class="icon-plus"></i> Tambah Data</a>
         <br />
         <br />
         <div class="row">
          <div class="col-md-12">
            <div class="panel panel-sky">
                <div class="panel-heading">
                    <h4>Data Dokter</h4>
                </div>
                <div class="panel-body collapse in">
                    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered datatables" id="example">
                        <thead>
                            <tr>
                                <th>No</th>
                                <th>Nama</th>
                                <th>NIK</th>
                                <th>Aksi</th>
                            </tr>
                        </thead>
                        <tbody>
                           <?php 
                           $i = 0;
                           if ($data != null) 
                            foreach ($data as $dt) {  $i++; ?>
                        <tr>
                            <td ><?php echo $i; ?></td>
                            <td class="col-md-3"><?php echo $dt->nama; ?></td>
                            <td class="col-md-3"><?php echo $dt->nik; ?></td>
                            <td>
                             <div class="btn-group">
                                           <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                        Aksi <span class="caret"></span>
                                    </button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="<?php echo site_url('dokter/edit').'/'.$dt->id_dokterhewan; ?>">Edit</a></li>
                                    <li><a href="<?php echo site_url('dokter/hapus').'/'.$dt->id_dokterhewan; ?>" onclick="return confirm('Anda yakin menghapus pengguna ?');">Hapus</a></li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                    <?php } ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
</div>

</div> <!-- container -->
</div> <!--wrap -->
</div> <!-- page-content -->